<%= content_for :title, '重置密码 - 设置' %>

<div class="uk-grid">
  <%= render 'tab_head' %>

  <div class="uk-width-medium-3-4">
    <% if flash[:alert].present? %>
        <div class="uk-alert uk-alert-danger"><%= flash[:alert] %></div>
    <% end %>
    <% if flash[:notice].present? %>
        <div class="uk-alert uk-alert-success"><%= flash[:notice] %></div>
    <% end %>

    <%= form_tag reset_password_admin_settings_path, method: 'patch', class: 'uk-form uk-text-center', autocomplete: 'off' do %>
        <fieldset>
          <legend></legend>
          <div class="uk-form-row">
            <%= text_field_tag :old_password, nil, class: 'uk-form-width-medium', placeholder: '旧密码' %>
          </div>
          <div class="uk-form-row">
            <%= text_field_tag :new_password, nil, class: 'uk-form-width-medium', placeholder: '新密码' %>
          </div>
        </fieldset>

        <div class="uk-form-row">
          <%= submit_tag '提交', class: 'uk-button uk-button-primary' %>
        </div>
    <% end %>
  </div>
</div>